package com.fudan.cfg.dataset;

import java.util.Map;

import com.fudan.cfg.base.DatasetDef;
import com.fudan.run.ctx.annotation.DatasetAdapter;

@DatasetAdapter("oracle")
public class OracleDataset extends DatasetDef{

	private String source;
	private String username;
	private String password;

	private String table;
	private String condition;

	public OracleDataset(String name, String type) {
		super(name, type);
	}

	@Override
	public DatasetDef build(Map<String, Object> configuration) {
		this.source = (String) configuration.get("source");
		this.username = (String) configuration.get("username");
		this.password = (String) configuration.get("password");
		this.table = (String) configuration.get("table");
		this.condition = (String) configuration.get("condition");
		return this;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table;
	}

	public String getCondition() {
		return condition;
	}

	public void setCondition(String condition) {
		this.condition = condition;
	}



}
